﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace 反射和特性
{
    public class ClassDemo2
    {

        public void Run()
        {
            var p = new Person()
            {
                Id = 13,
                Name = "csb",
                Age = 18,
                Gender = Gender.male,
                Class = "3A"
            };

            //MyPropertyEditor(p);


        }

        //void MyPropertyEditor(object selectedObject)
        //{
        //    selectedObject.GetType().GetProperties().Select(pi => GetEditor(pi));
        //}

       
    }

    class Person
    {
        public int Id { get; set; }
        public string Name { get; set; }    
        public int Age { get; set; }    
        public Gender Gender { get; set; }
        public string Class { get; set; }
    }

}
